#ifndef __Config_H__
#define __Config_H__

#include "tinyxml.h"
#include <Ogre.h>

class Config
{
public:
	Config();
	static Config* getInstance() { return &mConfig; }
	void loadConfig(const Ogre::String &fileName, const Ogre::String &groupName);
	void saveConfig();	

	void loadXMLFile(TiXmlElement* XMLRoot);
	void processChatBox(TiXmlElement* cfg);

	bool cfg_soundOn;
	bool cfg_debugOn;

	// ChatBox
	static Ogre::Real CHATBOX_LEFTPOS;
	static Ogre::Real CHATBOX_TOPPOS;
	static Ogre::Real CHATBOX_WIDTH;
	static Ogre::Real CHATBOX_HEIGHT;
	
private:
	static Config mConfig;
};

#endif